< previous page page_455 next page >

Page 455
(table continued from previous page)
ControlsPropertiesSettings
Top540
Width1200
TextboxNameText1
Height300
Left3540
Top120
Width1200
TextboxNameText2
Height300
Left3540
Top540
Width1200
Command ButtonNamecmdGetList
Caption&Get List
Height300
Left2160
Top1860
Width1200

0455-01.jpg
Figure 12.2.
Laying out the LSTCNTRL form.
Notice that in the preceding table, a single data control has been added to open the database and create a Snapshot object of the ValidNames table. It's always a good idea to use Snapshot objects as the RowSource for data-bound lists and combo boxes. Snapshot objects are static views of the data set and, even though they take up more workstation memory than Dynaset objects, they run faster. Notice also that we set the ListField property of the data-bound list to NameText. This fills the control with the values stored in the NameText column of the data set.

 
< previous page page_455 next page >

If you like this book, buy it!